module.exports=plop=>{
    plop.setGenerator('single',{
        description:'singleton',
        prompts:[
          {
            type:'input',
            name:'name',
            message:'Class name?',
            default:'MyClass'
          }
        ],
        actions:[
          {
            type:'add',
            path:'src/{{name}}.ts',
            templateFile:'plop-templates/singleton.hbs'
          }
        ]
      })
}